package cn.tedu.gateway.beijing.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.time.ZonedDateTime;

@RestController
public class BeijingController {
    @GetMapping("/bj/show")
    public String hello(@RequestParam("age") Integer age){
        ZonedDateTime now = ZonedDateTime.now();
        System.out.println(now);
        return "北京欢迎你~"+"年龄为："+age;
    }
}
